package com.ny.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import java.util.Date;

@Data
@Document(collection = "device")
public class Device {
    @Field("device_id")
    private Integer deviceId;

    @Field("device_sn")
    private String deviceSn;

    @Field("device_name")
    private String deviceName;

    @Field("device_type")
    private Integer deviceType;

    @Field("room_id")
    private Integer roomId;

    @Field("status")
    private Integer status;

    @Field("protocol")
    private String protocol;

    @Field("created_time")
    private Date createdTime;
}

